package sisi.suppliers;

import java.io.Serializable;
import java.sql.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;


/**
 * Trader.java - The persistent class for the <i>traders database table</i>. 
 * @author Pedro Gonzalez pedro@sisisoftware.it
 * @author Claudio Pelosi claudio@sisisoftware.it
 * @author SISI Software S.n.c. - www.sisisoftware.it
 * @version 1.0, 05/12/2013
 * 
 */
@Entity
@Table(name="traders")
public class Trader implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="TRADERS_IDUNICO_GENERATOR", sequenceName="TRADERSSEQ", allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="TRADERS_IDUNICO_GENERATOR")
	private Integer idunico;

	private Date dt;

	private Integer id;

	private Integer physicalid;

	private String physicalname;

	private String physicaltype;

	private Integer seq;

	private Integer traderid;

	private String tradername;

	private String tradertype;

	public Trader() {
	}

	public Integer getIdunico() {
		return this.idunico;
	}

	public void setIdunico(Integer idunico) {
		this.idunico = idunico;
	}


	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getPhysicalid() {
		return this.physicalid;
	}

	public void setPhysicalid(Integer physicalid) {
		this.physicalid = physicalid;
	}

	public String getPhysicalname() {
		return this.physicalname;
	}

	public void setPhysicalname(String physicalname) {
		this.physicalname = physicalname;
	}

	public String getPhysicaltype() {
		return this.physicaltype;
	}

	public void setPhysicaltype(String physicaltype) {
		this.physicaltype = physicaltype;
	}

	public Integer getSeq() {
		return this.seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public Integer getTraderid() {
		return this.traderid;
	}

	public void setTraderid(Integer traderid) {
		this.traderid = traderid;
	}

	public String getTradername() {
		return this.tradername;
	}

	public void setTradername(String tradername) {
		this.tradername = tradername;
	}

	public String getTradertype() {
		return this.tradertype;
	}

	public void setTradertype(String tradertype) {
		this.tradertype = tradertype;
	}

	public Date getDt() {
		return dt;
	}

	public void setDt(Date dt) {
		this.dt = dt;
	}

}